{namespace checkintrack.ui.map}

/**
 * A small div detailing a checkin.
 * @param link url to the checkin post.
 * @param featureName name of the place a user checked into.
 * @param addressFormatted location of the place a user checked into.
 * @param authorUrl link to the user's profile.
 * @param author name of user.
 * @param published date of checkin.
 */
{template .checkin}
  <div class="checkin">
    {if $featureName}<div class="featureName"><a href="{$link}">{$featureName|noAutoescape}</a></div>
    {/if}
    <div class="address">{$addressFormatted}</div>
    {if $published} at <span class="published"><a href="{$link}">{$published}</a></span>
    {/if}
    {if $author} by <span class="author"><a href="{$authorUrl}">{$author|noAutoescape}</a></span>
    {/if}
  </div>
{/template}
